/*
 * Position.h
 *
 *  Created on: 03/05/2011
 *      Author: DessaVida
 */

#ifndef POSITION_H_
#define POSITION_H_

#include "Component.h"

#include "math/Point2D.h"

class Position: public Component {
	Point2D point;
	double x;
	double y;
public:
	Position(int ID, Point2D point);
	Position(int ID, int x, int y);
	virtual ~Position();
	/*
	 * Gethers and Setters
	 */
    Point2D getPoint() const;
    void setPoint(Point2D point);
    void setPoint(int x , int y);
    void update(Point2D newPoint);

};

#endif /* POSITION_H_ */
